/**
 * Copyright © 2018 eqxiu.com 北京中网易企秀科技有限公司  All rights reserved.
 */
package com.eqxiu.iom.msg;

import org.apache.dubbo.config.spring.context.annotation.EnableDubbo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.concurrent.CountDownLatch;

/**
 * @description 运营平台服务消息提供者启动类
 * @author hanweisong
 * @date 2018年07月17日
 */
@EnableDubbo(scanBasePackages  = "com.eqxiu.iom.msg.api.impl")
@SpringBootApplication
public class IomMsgServiceApplication {

    private static final Logger LOGGER = LoggerFactory.getLogger(IomMsgServiceApplication.class);
    private static CountDownLatch latch = new CountDownLatch(1);

    public static void main(String[] args) throws Exception {
        SpringApplication.run(IomMsgServiceApplication.class, args);

        LOGGER.warn("------------------------------------------------");
        LOGGER.warn("        eqxiu-iom-msg-service started.");
        LOGGER.warn("        profile.active: {}", System.getProperty("spring.profiles.active"));
        LOGGER.warn("------------------------------------------------");
        latch.await();
    }

}
